﻿<Window x:Class="PlaylistCopy.Views.AboutWindow"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        xmlns:impl="clr-namespace:PlaylistCopy.Services.Impl"
        xmlns:p="clr-namespace:PlaylistCopy.Properties"
        Title="PlaylistCopy" Height="300" Width="300"
        DataContext="{Binding Source={StaticResource ViewModelLocator}, Path=AboutWindowVm}"
        impl:WindowFactory.IsRegisteredView="True"
        WindowStartupLocation="CenterOwner"
        ResizeMode="NoResize"
        WindowStyle="SingleBorderWindow">
    <Grid>
        <Grid.RowDefinitions>
            <RowDefinition Height="65"></RowDefinition>
            <RowDefinition Height="*"></RowDefinition>
        </Grid.RowDefinitions>
        
        <Grid Row="0">
            <Grid.ColumnDefinitions>
                <ColumnDefinition Width="80"></ColumnDefinition>
                <ColumnDefinition Width="Auto"></ColumnDefinition>
            </Grid.ColumnDefinitions>

            <Image Source="../Images/Other/logo.png" Height="60" ></Image>            
            <Grid Grid.Column="1">
                <Grid.RowDefinitions>
                    <RowDefinition Height="Auto"></RowDefinition>
                    <RowDefinition Height="*"></RowDefinition>
                </Grid.RowDefinitions>

                <TextBlock Grid.Row="0" Margin="0, 20, 0, 0" Text="PlaylistCopy" FontWeight="Bold" FontSize="15"></TextBlock>
                <TextBlock Grid.Row="1" Text="{x:Static p:Resources.About}"></TextBlock>
            </Grid>
        </Grid>
        
        <Grid Grid.Row="1">
           
            <Grid.RowDefinitions>
                <RowDefinition Height="4*"></RowDefinition>
                <RowDefinition Height="4*"></RowDefinition>
                <RowDefinition Height="4*"></RowDefinition>
                <RowDefinition Height="Auto"></RowDefinition>
            </Grid.RowDefinitions>
            
            <TextBlock Grid.Row="0" Text="Patryk Wąsiewicz" FontSize="15" FontWeight="Bold" VerticalAlignment="Bottom"></TextBlock>
            <TextBlock Grid.Row="1" Text="pat.wasiewicz@gmail.com" FontSize="15" VerticalAlignment="Top"></TextBlock>
            <TextBlock Grid.Row="2" Text="Used FatCow-Farm Fresh Icons (http://www.fatcow.com) and Buuf by mattahan (http://mattahan.deviantart.com/art/Buuf-37966044)" TextWrapping="Wrap" VerticalAlignment="Center"></TextBlock>

            <StackPanel Grid.Row="4" Orientation="Horizontal" FlowDirection="RightToLeft">
                <Button Margin="5" Padding="5" Width="80" Command="{Binding Close}">
                    <StackPanel Orientation="Horizontal" FlowDirection="LeftToRight">
                        <Image Width="16" Height="16"  Source="/PlaylistCopy;component/Images/cross.png" Margin="0,0,5,0" />
                        <TextBlock Text="{x:Static p:Resources.Close}" VerticalAlignment="Center" />
                    </StackPanel>
                </Button>
            </StackPanel>
        </Grid>
        
    </Grid>
</Window>
